import 'package:flutter/cupertino.dart';
import 'package:xlsk/utils/dimension.dart';

class Empty extends StatefulWidget{
  String title = '';
  Empty(this.title);

  @override
  State<StatefulWidget> createState() {
    return _empty();
  }
}

class _empty extends State<Empty>{
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Center(
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            Image.asset('assets/images/empty.png',width: Dimension(context).toPx(120),height: Dimension(context).toPx(120)),
            Container(
              child: Text('${widget.title}',style: TextStyle(color: Color(0xff8a8a8a),fontSize: Dimension(context).toPx(16))),
              margin: EdgeInsets.only(top: Dimension(context).toPx(7)),
            ),
          ],
        ),
      ),
      width: Dimension(context).toVw(100),
    );
  }
}
